package com.yunfei.bo.tDictionary;
import com.yunfei.entity.tDictionary.*;
import com.yunfei.utils.string.StringUtil;
/**
*@tablename tdictionary
*@author zhengyunfei
*@createDate Thu Feb 21 16:21:28 CST 2019
*/ 
public class TdictionaryBo implements java.io.Serializable{
	private String cSysname;
	private String lKeyno;
	private String cKeyvalue;
	private String cCaption;
	private String cModify;
	private String cMemo;
	private String cEnglish;
	private String lOrder;
	private String field;
	private String order;
   /**
		* 更改排序字段
		* @return
		*/
   public String getField() {
		   return field;
   }
   public void setField(String field) {
		   this.field = field;
   }
   public String getOrder() {
		   return order;
   }
   public void setOrder(String order) {
		   this.order = order;
   }
	private int curNo;
	public int getCurNo() {
		int value=(curNo-1)*curSize;
		return value;
	}	
	public void setCurNo(int curNo) {
		this.curNo = curNo;
	}
	private int curSize;
	public int getCurSize() {
		return curSize;
	}
	public void setCurSize(int curSize) {
		this.curSize = curSize;
	}
	public void setCSysname(String cSysname){
		this.cSysname=cSysname;
	}
	public String getCSysname(){
		return cSysname;
	}
	public void setLKeyno(String lKeyno){
		this.lKeyno=lKeyno;
	}
	public String getLKeyno(){
		return lKeyno;
	}
	public void setCKeyvalue(String cKeyvalue){
		this.cKeyvalue=cKeyvalue;
	}
	public String getCKeyvalue(){
		return cKeyvalue;
	}
	public void setCCaption(String cCaption){
		this.cCaption=cCaption;
	}
	public String getCCaption(){
		return cCaption;
	}
	public void setCModify(String cModify){
		this.cModify=cModify;
	}
	public String getCModify(){
		return cModify;
	}
	public void setCMemo(String cMemo){
		this.cMemo=cMemo;
	}
	public String getCMemo(){
		return cMemo;
	}
	public void setCEnglish(String cEnglish){
		this.cEnglish=cEnglish;
	}
	public String getCEnglish(){
		return cEnglish;
	}
	public void setLOrder(String lOrder){
		this.lOrder=lOrder;
	}
	public String getLOrder(){
		return lOrder;
	}
	public static TdictionaryEntity boToEntity(TdictionaryBo bo){
		TdictionaryEntity entity=new TdictionaryEntity();
		entity.setCSysname(bo.getCSysname());
		entity.setLKeyno(bo.getLKeyno());
		entity.setCKeyvalue(bo.getCKeyvalue());
		entity.setCCaption(bo.getCCaption());
		entity.setCModify(bo.getCModify());
		entity.setCMemo(bo.getCMemo());
		entity.setCEnglish(bo.getCEnglish());
		entity.setLOrder(bo.getLOrder());
		return entity;
	}
	public static TdictionaryBo entityToBo(TdictionaryEntity bo){
		TdictionaryBo entity=new TdictionaryBo();
		entity.setCSysname(bo.getCSysname());
		entity.setLKeyno(bo.getLKeyno());
		entity.setCKeyvalue(bo.getCKeyvalue());
		entity.setCCaption(bo.getCCaption());
		entity.setCModify(bo.getCModify());
		entity.setCMemo(bo.getCMemo());
		entity.setCEnglish(bo.getCEnglish());
		entity.setLOrder(bo.getLOrder());
		return entity;
	}
	public static String changeFieldColumn(String field){
		String result="";
			if(!StringUtil.isNullOrEmpty(field)){
				if(field.equals("cSysname")){
					result="C_SYSNAME";
				}
				if(field.equals("lKeyno")){
					result="L_KEYNO";
				}
				if(field.equals("cKeyvalue")){
					result="C_KEYVALUE";
				}
				if(field.equals("cCaption")){
					result="C_CAPTION";
				}
				if(field.equals("cModify")){
					result="C_MODIFY";
				}
				if(field.equals("cMemo")){
					result="C_MEMO";
				}
				if(field.equals("cEnglish")){
					result="C_ENGLISH";
				}
				if(field.equals("lOrder")){
					result="L_ORDER";
				}
		}
		return result;
	}
}

